import request from "@/utils/request";

//查询调拨单列表
export function getAllotInfoList(params) {
  return request({
    url: "/mes/allot/info/list",
    method: "get",
    params,
  });
}
// 新增调拨单
export function addAllotInfo(data) {
  return request({
    url: "/mes/allot/info",
    method: "post",
    data,
  });
}
// 修改调拨单
export function editAllotInfo(data) {
  return request({
    url: "/mes/allot/info",
    method: "put",
    data,
  });
}
// 获取调拨单单详细信息
export function getAllotInfo(id, params) {
  return request({
    url: `/mes/allot/info/${id}`,
    method: "get",
    params,
  });
}
// 删除调拨单单
export function delAllotInfo(id) {
  return request({
    url: `/mes/allot/info/${id}`,
    method: "DELETE",
  });
}

// 导出调拨单单列表
export function exportAllotList(data) {
  return request({
    url: `/mes/allot/info/export`,
    method: "post",
    data,
    responseType: "blob",
  });
}

// 纸张调拨明细查询
export function getAllotDetaillist(data) {
  return request({
    url: `/mes/allot/info/Detail`,
    method: "post",
    data,
  });
}


//导出纸张调拨明细
export function exportAllotDetailDetail(data) {
  return request({
    url: `/mes/allot/info/exportAllotDetailDetail`,
    method: "post",
    data,
    responseType: "blob",
  });
}
